﻿<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/admin/admin_page.master"
    AutoEventWireup="true" EnableEventValidation="false"  CodeBehind="store_edit.aspx.cs" Inherits="YXShop.Web.admin.store.store_edit" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="ContHead" runat="server" ContentPlaceHolderID="head">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <link rel="stylesheet" href="../style/toolbar.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script type="text/javascript" src="../scripts/public.js"></script>
    <script type="text/javascript" src="../../scripts/calendar.js"></script>


</asp:Content>
<asp:Content ID="ContTitle" runat="server" ContentPlaceHolderID="pagetitle">
    <asp:Label ID="lblOperator" runat="server" Text="新增"></asp:Label>
    门店
    <asp:Button ID="btnSave" runat="server" CssClass="inputbutton" Text="保存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"
        OnClick="btnSave_Click" />
    <asp:HyperLink ID="HyperLink1" onclick="javascript:history.back()" runat="server"
        CssClass="inputbutton" Width="65px" Height="20px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返  回</asp:HyperLink>
</asp:Content>
<asp:Content ID="ContInfo" runat="server" ContentPlaceHolderID="pageinfo">
</asp:Content>
<asp:Content ID="ContMain" runat="server" ContentPlaceHolderID="workspace">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
    <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolorlight="#DDDDDD"
        bordercolordark="#FFFFFF">
        <tr>
            <td class="form_table_input_info">
                门店名称：
            </td>
            <td>
                <asp:TextBox ID="txtStoreName" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtStoreNameTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                选择管理员：
            </td>
            <td>
                <asp:TextBox ID="txtAdminUserName" runat="server" ReadOnly="true"></asp:TextBox>
                <asp:HiddenField runat="server" ID="hfadminusername" />
            </td>
            <td>
                <asp:Panel ID="txtAdminUserNameTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                介绍门店名称：
            </td>
            <td>
                <asp:TextBox ID="txtParentStoreName" runat="server" ReadOnly="true"></asp:TextBox>
                <asp:HiddenField runat="server" ID="hfstoreid" />
            </td>
            <td>
                <div class="msgNormal">
                    介绍该门店加盟的门店名称</div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                销售中心名称：
            </td>
            <td>
                <asp:TextBox ID="txtStoreCenter" runat="server" ReadOnly="true"></asp:TextBox>
                <asp:HiddenField runat="server" ID="hfStoreCenterid" />
            </td>
            <td>
                <asp:Panel ID="txtStoreCenterTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                门店类型：
            </td>
            <td>
                <asp:DropDownList ID="ddlType" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <div class="msgNormal">
                    门店类型</div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                开业日期：
            </td>
            <td>
                <asp:TextBox ID="txtStartDate" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtStartDateTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                关闭日期：
            </td>
            <td>
                <asp:TextBox ID="txtEndDate" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <div class="msgNormal">
                    门店关闭日期</div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                省市区：
            </td>
            <td>
                <asp:DropDownList ID="ddlProvince" runat="server">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlCity" runat="server">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlBorough" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <div class="msgNormal">
                    该门店所在的行政区划</div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                详细地址：
            </td>
            <td>
                <asp:TextBox ID="txtAddress" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <div class="msgNormal">
                    该门店所在地的详细地址，详细联系地址</div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                邮政编码：
            </td>
            <td>
                <asp:TextBox ID="txtZipCode" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtZipCodeTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                联系人：
            </td>
            <td>
                <asp:TextBox ID="txtContact" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <div class="msgNormal">
                    联系人</div>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                传真：
            </td>
            <td>
                <asp:TextBox ID="txtFax" CssClass="date_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtFaxTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                手机：
            </td>
            <td>
                <asp:TextBox ID="txtMobilePhone" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtMobilePhoneTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td class="form_table_input_info">
                办公电话：
            </td>
            <td>
                <asp:TextBox ID="txtPhone" CssClass="long_input" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:Panel ID="txtPhoneTip" runat="server">
                </asp:Panel>
            </td>
        </tr>
         <tr>
  <td class="form_table_input_info">门店介绍：</td>
  <td colspan="2">
      <FCKeditorV2:FCKeditor ID="txtStoreContent" runat="server" Height="205px">
                </FCKeditorV2:FCKeditor><div class="msgNormal">门店详细介绍</div>
                </td>
 </tr>
    </table>
        <script type="text/javascript">
        function GetCity(controlid,code,value)
        {
            if (code.length>0){
             var control=$(controlid);
             var url="../plugin/getcity.aspx?parentid="+code; 
             new Ajax.Request(
                url,
                {
                    method: 'get',
                    encoding: 'GBK',
                    onSuccess: function(transport) 
                    {
                        var contentjson=eval("("+transport.responseText+")"); 
                        control.options.length=0;
                        control.options.add(new Option("请选择","")); 
                        for(var i=0;i<contentjson.city.length;i++)
                        {
                            
                            control.options.add(new Option(contentjson.city[i].content,contentjson.city[i].code)); 
                            if(value==contentjson.city[i].code)
                            {
                                control.options[i+1].selected=true;
                            }
                        }
                    }
                }
            );
           }
        }
        window.document.body.onload=function(){
            InitForm();
            <asp:Literal id="lblScript" runat="server"></asp:Literal>
        }
    </script>
</asp:Content>
<asp:Content ID="ContBottom" runat="server" ContentPlaceHolderID="pagebottom">
    <asp:Button ID="Button1" runat="server" CssClass="inputbutton" Text="保存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"
        OnClick="btnSave_Click" />
    <asp:HyperLink ID="HyperLink2" onclick="javascript:history.back()" runat="server"
        CssClass="inputbutton" Width="65px" Height="20px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'"
        onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返  回</asp:HyperLink>
</asp:Content>
